1 # Gravity – 1-dimensional.LACE
2 # The small mass m moves along the direct connection line towards mass M.
5 coefficient(1): +1 -> r0' # -1 to move initially towards M, +1 to move away from it
6 coefficient(2): -1 -> -r0 # initial distance of m to M
7 coefficient(3): +1 -> gamma*M # will be inverted in division
14 idivide gamma*M, r^2 -> -gamma*M/r^2
15 assign -gamma*M/r^2 -> r''
17 output(x): r # distance
19 output(y): r' # speed and direction
20 output(z): r'' # acceleration (always towards M)